home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19941221-19950208 / 000310_news@columbia.edu_Sat Jan 28 19:16:45 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA05194
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sat, 28 Jan 1995 16:06:02 -0500
  3. Received: by apakabar.cc.columbia.edu id AA02347
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sat, 28 Jan 1995 16:06:00 -0500
  5. Path: news.columbia.edu!panix!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gatech!swiss.ans.net!newstf01.news.aol.com!newsbf02.news.aol.com!not-for-mail
  6. From: drakepr@aol.com (DrakePR)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: RE: C-Kermit Development (global vars)
  9. Date: 28 Jan 1995 14:16:45 -0500
  10. Organization: America Online, Inc. (1-800-827-6364)
  11. Lines: 32
  12. Sender: root@newsbf02.news.aol.com
  13. Message-Id: <3ge56t$28f@newsbf02.news.aol.com>
  14. Reply-To: drakepr@aol.com (DrakePR)
  15. Nntp-Posting-Host: newsbf02.mail.aol.com
  16. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  17.  
  18. >Just like in any C program, any variable that you declare outside of
  19. >a function is global to the entire program unless you declare it >static.
  20. >
  21. >However, I would recommend that you declare the vars in the module 
  22. >closest in association with the use of the vars.
  23.  
  24. >Might I ask what modifications you are making to the ck code?
  25.  
  26. Thanks for the reply - 
  27.  
  28. I have plowed my way through the code and now have the new version in
  29. test.  (I ended up declaring the vars outside main in ckcmai 
  30. and then declairing them as external in the other mods)
  31.  
  32. My only remaining problem is one that I need my vars to live on after the
  33. user passes in uses the command mode (user interface.....
  34. ie When I drop to the C-kermit> prompt then move back to connect mode all
  35. my vars are reinitiated.
  36.  
  37. This is refered to in the Program Logic manual only they refer to them 
  38. as group 1 and group 2 fuctions.
  39.  
  40. At Last to my question:
  41. Using the nomenclature of the Program Logic Manual I need to maintain my
  42. vars when moving from group 1 fuctions to group 2 fuctions.  How I do
  43. this?? :)
  44.  
  45. This version keeps a copy of the current terminal screen in memory, and a
  46. tool or two to use that screen.
  47.  
  48. thanks,
  49. paul